const xiyou=["唐僧","悟空","八戒","沙僧"];
for (let string of xiyou) {
	console.log(string)
}
for (let xiyouKey in xiyou) {
	console.log(xiyouKey)
}
const classInfo={
	name:"终极一班",
	stus:[
		"小民",
		"小李",
		"小张",
		"小王"
	],
	[Symbol.iterator](){
     let index=0;
     return {
     	next:()=>{
     		if (index<this.stus.length){
     			let result={value: this.stus[index],done: false}
					index++;
     			return result;
				}else {
     			return { value:undefined,done:true}
				}
			}
		 }
	}
}
for (let classInfoElement of classInfo) {
	console.log(classInfoElement)
}
